package com.vincent.dao;

import com.vincent.common.enums.CacheEnum;
import com.vincent.model.Navigation;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by vincent on 15-1-2.
 */
@Repository("navigationDao")
public class NavigationDao {
    @Resource
    private NavigationMapper navigationMapper;
    @Cacheable(value = CacheEnum.NAVIGATION)
    public List<Navigation> selectAll(){
        return navigationMapper.selectAll();
    }
}